package com.fusion.core.interactions;

import com.fusion.core.CoreSubsystem;
import com.fusion.core.SynchronizedNeedsUserInteraction;
import com.fusion.core.node.Friend;

/**
 * @author SwethaShivakumar 
 * Project: fusion
 * Date: Mar 14, 2009
 * URL: http://fusionwiki.co.cc
 * Mail Me At: shiva@fusionproject.co.cc
 */
public class ForwardedInvitationInteraction extends SynchronizedNeedsUserInteraction {
	private static final long serialVersionUID = 1L;
	private String invitationCode;
    private int middlemanGuid;
    private String remoteName;
    private int fromGuid;

    public ForwardedInvitationInteraction(Friend middleman, String remoteName, int fromGuid, String invitationCode) {
        this.invitationCode = invitationCode;
        this.middlemanGuid = middleman.getGuid();
        this.remoteName = remoteName;
        this.fromGuid = fromGuid;
    }

    public String getInvitationCode() {
        return invitationCode;
    }

    public Friend getMiddleman(CoreSubsystem core) {
        return core.getFriendManager().getFriend(middlemanGuid);
    }

    public String getRemoteName() {
        return remoteName;
    }

    public int getFromGuid() {
        return fromGuid;
    }
}
